SMAHB04600_[자동판정]문진 질문은행관리.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 문진 질문은행
  4. * 설 명 :
  5. * 설 계 자 : 이성인
  6. * 작 성 자 : 이성인
  7. * 작 성 일 :
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>문진 질문은행관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <condition>
  20. <instcd/>
  21. <qrcl/>
  22. <lang/>
  23. <wkdate/>
  24. <flag/>
  25. <cplang/>
  26. </condition>
  27. <list>
  28. <amqblist/>
  29. <amawlist/>
  30. </list>
  31. </main>
  32. <hidden>
  33. <dspcontrol>
  34. <amqbCurrow/>
  35. <amawCurrow/>
  36. </dspcontrol>
  37. </hidden>
  38. <tmp>
  39. </tmp>
  40. <send>
  41. <amqblist/>
  42. <amawlist/>
  43. <langlst/>
  44. <subretrive>
  45. <instcd/>
  46. <inqrqestid/>
  47. <langflag/>
  48. </subretrive>
  49. </send>
  50. <disply>
  51. <qrcllst/>
  52. <langlst/>
  53. </disply>
  54. <init>
  55. <A0008list>
  56. <A0008>
  57. <cdnm/>
  58. <cdid/>
  59. </A0008>
  60. </A0008list>
  61. </init>
  62. </root>
  63. </instance>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  67. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript" src="../../../ast/healexamautojudgweb/js/AJDG001.js"/>
  70. <script type="javascript" ev:event="xforms-ready">
  71. <![CDATA[
  72. fInit();
  73. // fAuthCheck(btn_save);
  74. // fDefaultSubmit();
  75. // fDefaultSet();
  76. // model.refresh();
  77. ]]>
  78. </script>
  79. <submission id="TRAHB04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/langlst" resultref="/root/disply/langlst"/>
  80. <submission id="TRAHB04601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/condition" resultref="/root/disply/qrcllst"/>
  81. <submission id="TXAHB04602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/amqblist" resultref="/root/tmp"/>
  82. <submission id="TXAHB04603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/amawlist" resultref="/root/tmp"/>
  83. <submission id="TRAHB04604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/condition" resultref="/root/main/list/amqblist"/>
  84. <submission id="TRAHB04605" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/subretrive" resultref="/root/main/list/amawlist"/>
  85. <submission id="TXAHB04606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/condition" resultref="/root/tmp"/>
  86. <submission id="TRAHB03805" mediatype="application/x-www-form-urlencoded" method="post"/>
  87. </model>
  88. <script type="javascript">
  89. <![CDATA[
  90. function fInit(){
  91. model.resetInstanceNode("/root/disply/langid");
  92. model.removeNodeset("/root/main/list/amqblist");
  93. model.removeNodeset("/root/main/list/amawlist");
  94. var instcd = getUserInfo("dutplceinstcd");
  95. model.setValue("/root/main/condition/instcd",instcd);
  96. var sToday = getCurrentDate().toString();
  97. model.setValue("/root/main/condition/wkdate",sToday);
  98. model.setValue("/root/main/condition/qrcl","");
  99. model.setValue("/root/main/condition/lang","");
  100. model.setValue("/root/main/condition/cplang","");
  101. // -- 문진언어 combo box에 setting
  102. // model.setValue("/root/main/condition/flag","LANG")
  103. // model.makeNode("/root/send/langlst");
  104. // model.copyNode("/root/send/langlst", "/root/main/condition");
  105. //건진공통코드 조회
  106. fGetHealexamCodeList( new Array( "A0008"),
  107. new Array("/root/init/A0008list") );
  108. submit("TRAHB04101",false); // 문진언어
  109. submit("TRAHB04601",false); // 문진분류
  110. // 언어 셋팅
  111. // fGetHealexamCodeList( new Array("A0008"),
  112. // new Array("/root/init/A0008list") );
  113. model.refresh()
  114. }
  115. // ----------------------------------------------------
  116. // 질문 내용 조회
  117. // ----------------------------------------------------
  118. function fRetriveAmqbList()
  119. {
  120. model.removeNodeset("/root/main/list/amqblist");
  121. model.removeNodeset("/root/main/list/amawlist");
  122. model.resetInstanceNode("/root/hidden/dspcontrol/amqbCurrow");
  123. model.resetInstanceNode("/root/hidden/dspcontrol/amawCurrow");
  124. submit("TRAHB04604",true); // 질문내용조회
  125. model.refresh();
  126. }
  127. // ----------------------------------------------------
  128. // 질문 답안 조회
  129. // ----------------------------------------------------
  130. function fRetriveAmawList(rowNum)
  131. {
  132. model.removeNodeset("/root/main/list/amawlist");
  133. model.resetInstanceNode("/root/hidden/dspcontrol/amawCurrow");
  134. var sInstcd;
  135. var sinqrid;
  136. var slangflag;
  137. sInstcd = grd_amqb.valueMatrix(rowNum, grd_amqb.colRef("amqb_instcd")) ;
  138. sinqrid = grd_amqb.valueMatrix(rowNum, grd_amqb.colRef("amqb_inqrqestid")) ;
  139. slangflag = grd_amqb.valueMatrix(rowNum, grd_amqb.colRef("amqb_langflag")) ;
  140. model.setValue("/root/send/subretrive/instcd",sInstcd);
  141. model.setValue("/root/send/subretrive/inqrqestid",sinqrid);
  142. model.setValue("/root/send/subretrive/langflag",slangflag);
  143. submit("TRAHB04605",true); // 질문내용조회
  144. }
  145. // ----------------------------------------------------
  146. // 그리드 Row 추가 삭제 - 추가 일경우 기본 데이타 세팅
  147. // ----------------------------------------------------
  148. function fAddDelRow(sGrd, sStatus)
  149. {
  150. var rowNum;
  151. if ( sGrd == "amqb") {
  152. // -- 질문 추가 버튼
  153. if(sStatus == "A")
  154. {
  155. grd_amqb.addRow();
  156. rowNum = grd_amqb.row;
  157. fGridDefaultDataSet("amqb", rowNum);
  158. }
  159. else
  160. {
  161. deleteSelectedRows(grd_amqb, true);
  162. //model.refresh();
  163. }
  164. }
  165. else
  166. {
  167. // -- 질문 답안 추가 버튼
  168. if(sStatus == "A")
  169. {
  170. var amqbRow;
  171. var inqrid;
  172. var langcd;
  173. amqbRow = model.getValue("/root/hidden/dspcontrol/amqbCurrow");
  174. inqrid = grd_amqb.valueMatrix(amqbRow, grd_amqb.colRef("amqb_inqrqestid")) ;
  175. langcd = grd_amqb.valueMatrix(amqbRow, grd_amqb.colRef("amqb_langflag")) ;
  176. if (inqrid == "") {
  177. model.alert("질문 항목이 선택되지 않았습니다","알림");
  178. return ;
  179. }
  180. grd_amaw.addRow();
  181. grd_amaw.valueMatrix(grd_amaw.row, grd_amaw.colRef("amaw_instcd")) = getUserInfo("dutplceinstcd");
  182. grd_amaw.valueMatrix(grd_amaw.row, grd_amaw.colRef("amaw_inqrqestid")) = inqrid ;
  183. grd_amaw.valueMatrix(grd_amaw.row, grd_amaw.colRef("amaw_langflag")) = langcd ;
  184. model.refresh();
  185. }
  186. else
  187. {
  188. deleteSelectedRows(grd_amaw, true);
  189. // model.refresh();
  190. }
  191. }
  192. }
  193. // ----------------------------------------------------
  194. // Grid 행추가시 Default 데이타
  195. // ----------------------------------------------------
  196. function fGridDefaultDataSet(sGrd, sRow)
  197. {
  198. if ( sGrd == "amqb") {
  199. grd_amqb.valueMatrix(sRow, grd_amqb.colRef("amqb_instcd")) = getUserInfo("dutplceinstcd");
  200. grd_amqb.valueMatrix(sRow, grd_amqb.colRef("amqb_ajclscd")) = model.getValue("/root/main/condition/qrcl");
  201. grd_amqb.valueMatrix(sRow, grd_amqb.colRef("amqb_langflag")) = model.getValue("/root/main/condition/lang");
  202. grd_amqb.valueMatrix(sRow, grd_amqb.colRef("amqb_registdd")) = model.getValue("/root/main/condition/wkdate");
  203. grd_amqb.valueMatrix(sRow, grd_amqb.colRef("amqb_enddd")) = "99991231";
  204. grd_amqb.valueMatrix(sRow, grd_amqb.colRef("amqb_choitype")) = "2"; // 단일선택
  205. grd_amqb.valueMatrix(sRow, grd_amqb.colRef("amqb_sexflag")) = "C"; // 성별 : 공통
  206. grd_amqb.valueMatrix(sRow, grd_amqb.colRef("amqb_qestflag")) = "Q"; // 질문유형 :질문
  207. grd_amqb.valueMatrix(sRow, grd_amqb.colRef("amqb_useyn")) = "Y"; // 사용여부 :사용
  208. }
  209. }
  210. // ----------------------------------------------------
  211. // 하위 질문 생성
  212. // ----------------------------------------------------
  213. function fAddUnderQuery(sGrd) {
  214. var rowCnt;
  215. var rowNum ; // 상위 질문
  216. var insNum ; // 하위 질문
  217. var supQrid ; // 상위 질문 ID
  218. var supRpid ; // 상위 답안 ID
  219. var rpRowNum ; // 상위 답안 ID
  220. rowCnt = grd_amqb.rows - 1;
  221. rowNum = model.getValue("/root/hidden/dspcontrol/amqbCurrow");
  222. // --- 상위 질문이 선택 여부 확인 ---
  223. if ( rowNum == "") {
  224. model.alert("상위 질문을 클릭하여 주십시요");
  225. return;
  226. }
  227. // --- 선택된 row의 질문 Id가 새 질문의 상위 질문 코드가 된다. ---
  228. supQrid = grd_amqb.valueMatrix(rowNum, grd_amqb.colRef("amqb_inqrqestid")) ;
  229. if (supQrid == "") {
  230. model.alert("상위 질문코드가 입력되어 있지 않습니다 확인 바랍니다");
  231. return;
  232. }
  233. // --- 답안의 하위질문추가2 버튼 클릭시 ---
  234. if (sGrd == "amaw") {
  235. rpRowNum = model.getValue("/root/hidden/dspcontrol/amawCurrow");
  236. if ( rpRowNum == "") {
  237. model.alert("상위 답안을 클릭하여 주십시요");
  238. return;
  239. }
  240. supRpid = grd_amaw.valueMatrix(rpRowNum, grd_amaw.colRef("amaw_answreqno")) ;
  241. if (supRpid == "") {
  242. model.alert("상위 답안 코드가 입력되어 있지 않습니다 확인 바랍니다");
  243. return;
  244. }
  245. }
  246. // --- 행을 추가하고 기본 데이타를 입력 ---
  247. if ( rowCnt == rowNum ) {
  248. grd_amqb.addRow();
  249. insNum = grd_amqb.row;
  250. } else
  251. {
  252. insNum = parseInt(rowNum)+1;
  253. grd_amqb.insertRow (insNum);
  254. }
  255. // --- 기본 데이타 세팅 ---
  256. fGridDefaultDataSet("amqb", insNum);
  257. grd_amqb.valueMatrix(insNum, grd_amqb.colRef("amqb_supinqrqestid")) = supQrid ;
  258. if (sGrd == "amaw") {
  259. grd_amqb.valueMatrix(insNum, grd_amqb.colRef("amqb_supinswseqno")) = supRpid ;
  260. }
  261. }
  262. // ----------------------------------------------------
  263. // 동일 답안 선택 저장 기능
  264. // ----------------------------------------------------
  265. function fSameAnswSave() {
  266. var rtnVal;
  267. var rowQCnt;
  268. var rowRCnt;
  269. var inqrid;
  270. rtnVal = fAmawDefaultValuechek()
  271. if ( rtnVal > 1 ) {
  272. model.alert("답안에 Default 값이 하나 이상 선택되어 있습니다.. 수정하시기 바랍니다")
  273. return;
  274. }
  275. fAmqbSave() ; // 질문을 저장하고
  276. rowQCnt = grd_amqb.Rows;
  277. rowRCnt = grd_amaw.Rows;
  278. for(var i =1; i < rowQCnt ; i++)
  279. {
  280. if ( grd_amqb.valueMatrix(i, grd_amqb.colRef("samchk")) == "Y" ) {
  281. inqrid = grd_amqb.valueMatrix(i, grd_amqb.colRef("amqb_inqrqestid"));
  282. // -- 답안의 질문ID 변경 후 저장
  283. for(var j =1; j < rowRCnt ; j++)
  284. {
  285. grd_amaw.valueMatrix(j, grd_amaw.colRef("amaw_inqrqestid")) = inqrid ;
  286. grd_amaw.rowStatus(j) = 1;
  287. }
  288. fAmawSave() ;
  289. }
  290. }
  291. return 0;
  292. }
  293. // ----------------------------------------------------
  294. //화면 그리드 조절
  295. // ----------------------------------------------------
  296. function fGridWidthcontrol(sGrd,sStatus)
  297. {
  298. // 질문 내역 그리드를 늘릴때
  299. if ( sGrd == "amqb") {
  300. if(sStatus == "W") {
  301. grd_amqb.attribute ("width") ="1190px";
  302. grd_amaw.visible = false;
  303. }
  304. }
  305. // 답안 내역 그리드를 늘릴때
  306. if ( sGrd == "amaw") {
  307. if(sStatus == "W") {
  308. grd_amaw.visible = true;
  309. grd_amqb.attribute ("width") = "380px";
  310. grd_amaw.attribute ("left") = "385px";
  311. grd_amaw.attribute ("width") ="805px";
  312. }
  313. }
  314. // 원래 그대로 돌아갈때
  315. if(sStatus == "N") {
  316. grd_amaw.visible = true;
  317. grd_amqb.attribute ("width") = "660px";
  318. grd_amaw.attribute ("left") = "670px";
  319. grd_amaw.attribute ("width") = "520px";
  320. }
  321. }
  322. // ----------------------------------------------------
  323. //데이터 처리
  324. // ----------------------------------------------------
  325. function fSave() {
  326. var rtnVal;
  327. rtnVal = fAmawDefaultValuechek();
  328. if ( rtnVal > 1 ) {
  329. model.alert("답안에 Default 값이 하나 이상 선택되어 있습니다.. 수정하시기 바랍니다")
  330. return;
  331. }
  332. fAmqbSave() ;
  333. fAmawSave() ;
  334. }
  335. // -- 질문 저장
  336. function fAmqbSave() {
  337. model.setValue("/root/send/amqblist", grd_amqb.getUpdateData());
  338. submit("TXAHB04602");
  339. }
  340. // -- 답안 저장
  341. function fAmawSave() {
  342. model.setValue("/root/send/amawlist", grd_amaw.getUpdateData());
  343. submit("TXAHB04603");
  344. }
  345. // ----------------------------------------------------
  346. // 답안에 디폴트 값이 하나 이상 선택되어 있는가 check
  347. // ----------------------------------------------------
  348. function fAmawDefaultValuechek() {
  349. var rowCnt;
  350. var totCnt;
  351. rowCnt = grd_amaw.Rows;
  352. totCnt = 0;
  353. for(var i =1; i < rowCnt ; i++)
  354. {
  355. if ( grd_amaw.valueMatrix(i, grd_amaw.colRef("amaw_defaulyn")) == "Y" ) {
  356. totCnt++ ;
  357. if ( totCnt > 1) {
  358. return totCnt;
  359. }
  360. }
  361. }
  362. return 0;
  363. }
  364. // -- 다른 언어로의 Copy 기능
  365. function fCopy() {
  366. var OrgLang ;
  367. var CopLang ;
  368. OrgLang =model.getValue("/root/main/condition/lang");
  369. CopLang =model.getValue("/root/main/condition/cplang")
  370. if ( OrgLang == "" )
  371. {
  372. model.alert("복사 할 원 언어를 선택하여 주세요...","알림");
  373. return;
  374. }
  375. if ( CopLang == "" )
  376. {
  377. model.alert("복사 할 대상 언어를 선택하여 주세요...","알림");
  378. return;
  379. }
  380. if ( OrgLang == CopLang )
  381. {
  382. model.alert("같은 분류로 복사 할 수 없습니다...","알림");
  383. return;
  384. }
  385. submit("TXAHB04606");
  386. model.setValue("/root/main/condition/lang",CopLang);
  387. fRetriveAmqbList();
  388. }
  389. ]]>
  390. </script>
  391. </xhtml:head>
  392. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  393. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  394. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:525px; height:13px; ">[자동판정]문진 질문은행 관리</caption>
  395. </group>
  396. <group id="grp_btn" style="left:0px; top:722px; width:1195px; height:33px; ">
  397. <button id="button3" class="btn4_letter3" style="left:1122px; top:5px; width:68px; height:22px; ">
  398. <caption>초기화</caption>
  399. <script type="javascript" ev:event="DOMActivate">
  400. <![CDATA[
  401. window.reload();
  402. // fInit();
  403. // model.refresh();
  404. ]]>
  405. </script>
  406. </button>
  407. <button id="button1" class="btn4_letter2" style="left:1065px; top:5px; width:56px; height:22px; ">
  408. <caption>저장</caption>
  409. <script type="javascript" ev:event="DOMActivate">
  410. <![CDATA[
  411. fSave();
  412. fRetriveAmqbList();
  413. ]]>
  414. </script>
  415. </button>
  416. <button id="button4" class="btn4_letter4" style="left:985px; top:5px; width:80px; height:22px; ">
  417. <caption>동일답안</caption>
  418. <script type="javascript" ev:event="DOMActivate">
  419. <![CDATA[
  420. fSameAnswSave();
  421. ]]>
  422. </script>
  423. </button>
  424. </group>
  425. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:707px; ">
  426. <script type="javascript" ev:event="onclick">
  427. <![CDATA[
  428. ]]>
  429. </script>
  430. <col ref="ajrm_rmhng"/>
  431. <group id="group5" style="left:0px; top:10px; width:1190px; height:40px; vertical-align:top; ">
  432. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  433. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:10px; width:56px; height:22px; ">
  434. <caption>조회</caption>
  435. <script type="javascript" ev:event="DOMActivate">
  436. <![CDATA[
  437. fRetriveAmqbList();
  438. ]]>
  439. </script>
  440. </button>
  441. <line id="line2" style="x1:1115px; y1:9px; x2:1115px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  442. <caption id="caption4" class="search_name" style="left:470px; top:10px; width:91px; height:17px; ">문진언어 :</caption>
  443. <select1 id="combo4" ref="/root/main/condition/qrcl" class="combo_s_essential" appearance="minimal" style="left:94px; top:10px; width:190px; height:19px; ">
  444. <choices>
  445. <itemset nodeset="/root/disply/qrcllst">
  446. <label ref="cdnm"/>
  447. <value ref="cdid"/>
  448. </itemset>
  449. </choices>
  450. <script type="javascript" ev:event="xforms-value-changed">
  451. <![CDATA[
  452. //btn_search.dispatch("DOMActivate");
  453. // model.refresh();
  454. ]]>
  455. </script>
  456. </select1>
  457. <caption id="caption2" class="search_name" style="left:4px; top:10px; width:91px; height:17px; ">문진분류 :</caption>
  458. <select1 id="combo3" ref="/root/main/condition/cplang" class="combo_s_essential" appearance="minimal" style="left:675px; top:10px; width:75px; height:19px; ">
  459. <choices>
  460. <itemset nodeset="/root/init/A0008list/A0008">
  461. <label ref="cdnm"/>
  462. <value ref="cdid"/>
  463. </itemset>
  464. </choices>
  465. </select1>
  466. <caption id="caption10" style="left:810px; top:0px; width:220px; height:35px; font-weight:normal; color:#993366; ">
  467. <![CDATA[::복사할언어선택후 복사버튼클릭!!
  468. (문진분류화면의 분류 번호대로 들어감)]]>
  469. </caption>
  470. <button id="button7" class="btn5_letter2" visibility="visible" style="left:760px; top:10px; width:42px; height:19px; ">
  471. <caption>복사</caption>
  472. <script type="javascript" ev:event="DOMActivate">
  473. <![CDATA[
  474. fCopy();
  475. ]]>
  476. </script>
  477. </button>
  478. <select1 id="combo1" ref="/root/main/condition/lang" appearance="minimal" style="left:560px; top:10px; width:75px; height:19px; ">
  479. <choices>
  480. <itemset nodeset="/root/init/A0008list/A0008">
  481. <label ref="cdnm"/>
  482. <value ref="cdid"/>
  483. </itemset>
  484. </choices>
  485. </select1>
  486. <input id="input2" ref="/root/main/condition/wkdate" class="input_s_essential" inputtype="date" style="left:355px; top:10px; width:105px; height:19px; "/>
  487. <caption id="caption7" class="search_name" style="left:290px; top:10px; width:65px; height:17px; ">일자 :</caption>
  488. <button id="button10" class="icon_right" style="left:640px; top:10px; width:26px; height:19px; ">
  489. <caption/>
  490. </button>
  491. </group>
  492. <datagrid id="grd_amaw" nodeset="/root/main/list/amawlist" autoresize="true" caption="기관코드^질문ID^언어^답ID^제목^내용^순서^디폴트^추가질문1^추가질문2^추가질문3^요약" colsep="^" colwidth="0, 0, 0, 32, 0, 217, 35, 45, 140, 140, 140, 32" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:670px; top:80px; width:520px; height:625px; ">
  493. <col ref="amaw_instcd" visibility="hidden"/>
  494. <col ref="amaw_inqrqestid" visibility="hidden"/>
  495. <col ref="amaw_langflag" visibility="hidden"/>
  496. <col disabled="true" ref="amaw_answreqno" type="output"/>
  497. <col ref="amaw_answtitl" visibility="hidden"/>
  498. <col ref="amaw_answcnts" type="input"/>
  499. <col ref="amaw_seq" type="input" maxlength="2"/>
  500. <col checkvalue="Y,N" ref="amaw_defaulyn" type="checkbox"/>
  501. <col ref="amaw_addqest1" type="input"/>
  502. <col ref="amaw_addqest2" type="input"/>
  503. <col ref="amaw_addqest3" type="input"/>
  504. <col checkvalue="Y,N" ref="amaw_summyn" type="checkbox"/>
  505. <script type="javascript" ev:event="onclick">
  506. <![CDATA[
  507. var Currow = grd_amaw.row;
  508. model.setValue("/root/hidden/dspcontrol/amawCurrow", Currow );
  509. ]]>
  510. </script>
  511. </datagrid>
  512. <button id="btn_addqest" class="btn2_letter3" style="left:553px; top:55px; width:53px; height:19px; ">
  513. <caption>행추가</caption>
  514. <script type="javascript" ev:event="DOMActivate">
  515. <![CDATA[
  516. fAddDelRow("amqb", "A");
  517. ]]>
  518. </script>
  519. </button>
  520. <caption id="caption3" class="tit_2" style="left:671px; top:59px; width:87px; height:13px; ">답안</caption>
  521. <button id="btn_delitem" class="btn2_letter3" style="left:607px; top:55px; width:53px; height:19px; ">
  522. <caption>행삭제</caption>
  523. <script type="javascript" ev:event="DOMActivate">
  524. <![CDATA[
  525. fAddDelRow("amqb", "D");
  526. ]]>
  527. </script>
  528. </button>
  529. <button id="btn_delqest" class="btn2_letter3" style="left:1137px; top:55px; width:53px; height:19px; ">
  530. <caption>행삭제</caption>
  531. <script type="javascript" ev:event="DOMActivate">
  532. <![CDATA[
  533. fAddDelRow("amaw", "D");
  534. ]]>
  535. </script>
  536. </button>
  537. <button id="btn_additem" class="btn2_letter3" style="left:1083px; top:55px; width:53px; height:19px; ">
  538. <caption>행추가</caption>
  539. <script type="javascript" ev:event="DOMActivate">
  540. <![CDATA[
  541. fAddDelRow("amaw", "A");
  542. ]]>
  543. </script>
  544. </button>
  545. <button id="button2" class="btn2_letter7" visibility="visible" style="left:985px; top:55px; width:97px; height:19px; ">
  546. <caption>종속질문추가2</caption>
  547. <script type="javascript" ev:event="DOMActivate">
  548. <![CDATA[
  549. fAddUnderQuery("amaw", "A");
  550. ]]>
  551. </script>
  552. </button>
  553. <button id="button6" class="btn2_letter7" visibility="visible" style="left:454px; top:55px; width:97px; height:19px; ">
  554. <caption>하위질문추가1</caption>
  555. <script type="javascript" ev:event="DOMActivate">
  556. <![CDATA[
  557. fAddUnderQuery("amqb", "A");
  558. ]]>
  559. </script>
  560. </button>
  561. <caption id="caption5" class="tit_2" style="left:5px; top:59px; width:80px; height:13px; ">질문</caption>
  562. <button id="button5" class="icon_right" visibility="visible" style="left:373px; top:55px; width:26px; height:19px; ">
  563. <caption/>
  564. <script type="javascript" ev:event="DOMActivate">
  565. <![CDATA[
  566. fGridWidthcontrol("amqb" ,"W");
  567. ]]>
  568. </script>
  569. </button>
  570. <button id="button8" class="icon_left" visibility="visible" style="left:427px; top:55px; width:26px; height:19px; ">
  571. <caption/>
  572. <script type="javascript" ev:event="DOMActivate">
  573. <![CDATA[
  574. fGridWidthcontrol("amaw" ,"W");
  575. ]]>
  576. </script>
  577. </button>
  578. <button id="button9" class="icon_top_direction" visibility="visible" style="left:400px; top:55px; width:26px; height:19px; ">
  579. <caption/>
  580. <script type="javascript" ev:event="DOMActivate">
  581. <![CDATA[
  582. fGridWidthcontrol("amqb" ,"N");
  583. ]]>
  584. </script>
  585. </button>
  586. <datagrid id="grd_amqb" nodeset="/root/main/list/amqblist" autoresize="true" caption="기관코드^ ^문진분류^언어^질문번호^문ID^유형^^상위답^질문제목^질문내용^답안형태^성별^시작일^종료일^사용^상위질문^상위답변^상위조건^요약^최초입력자^최초수정자" colsep="^" colwidth="0, 26, 160, 0, 0, 29, 35, 29, 44, 110, 390, 59, 47, 88, 88, 37, 0, 0, 0, 34, 78, 85" fixedcols="2" mergecells="never" mergecellsfixedrows="byrestriccol" rowheader="update" rowsep="|" style="left:0px; top:80px; width:660px; height:625px; ">
  587. <col ref="amqb_instcd" visibility="hidden"/>
  588. <col checkvalue="Y,N" ref="samchk" type="checkbox"/>
  589. <col ref="amqb_ajclscd" type="combo">
  590. <choices>
  591. <itemset nodeset="/root/disply/qrcllst">
  592. <label ref="cdnm"/>
  593. <value ref="cdid"/>
  594. </itemset>
  595. </choices>
  596. </col>
  597. <col ref="amqb_langflag" visibility="hidden"/>
  598. <col ref="amqb_qestno" visibility="hidden"/>
  599. <col disabled="true" ref="amqb_inqrqestid" type="output" maxlength="10"/>
  600. <col editmode="search" ref="amqb_qestflag" type="combo">
  601. <choices>
  602. <item>
  603. <label>질문</label>
  604. <value>Q</value>
  605. </item>
  606. <item>
  607. <label>설명</label>
  608. <value>E</value>
  609. </item>
  610. </choices>
  611. </col>
  612. <col ref="amqb_subclf"/>
  613. <col ref="amqb_supinswseqno" type="input"/>
  614. <col ref="amqb_qesttitl" type="input"/>
  615. <col ref="amqb_qestcnts" type="input" style="left:430px; top:23px; width:348px; height:23px; "/>
  616. <col ref="amqb_choitype" type="combo" style="text-align:center; ">
  617. <choices>
  618. <item>
  619. <label>자유입력</label>
  620. <value>1</value>
  621. </item>
  622. <item>
  623. <label>단일선택</label>
  624. <value>2</value>
  625. </item>
  626. <item>
  627. <label>다중선택</label>
  628. <value>3</value>
  629. </item>
  630. <item>
  631. <label>없음</label>
  632. <value>-</value>
  633. </item>
  634. </choices>
  635. </col>
  636. <col ref="amqb_sexflag" type="combo" style="text-align:center; ">
  637. <choices>
  638. <item>
  639. <label>공통</label>
  640. <value>C</value>
  641. </item>
  642. <item>
  643. <label>남</label>
  644. <value>M</value>
  645. </item>
  646. <item>
  647. <label>여</label>
  648. <value>F</value>
  649. </item>
  650. </choices>
  651. </col>
  652. <col ref="amqb_registdd" type="inputdate" style="text-align:center; "/>
  653. <col ref="amqb_enddd" type="inputdate" style="text-align:center; "/>
  654. <col checkvalue="Y,N" ref="amqb_useyn" type="checkbox"/>
  655. <col ref="amqb_supinqrqestid" visibility="hidden"/>
  656. <col ref="amqb_supinswseqno" visibility="hidden"/>
  657. <col ref="amqb_supinswcond" visibility="hidden"/>
  658. <col checkvalue="Y,N" ref="amqb_summyn" type="checkbox"/>
  659. <col ref="amqb_fstrgstrid" style="text-align:center; "/>
  660. <col ref="amqb_lastupdtrid" style="text-align:center; "/>
  661. <script type="javascript" ev:event="ondblclick">
  662. <![CDATA[
  663. var Currow = grd_amqb.row;
  664. model.setValue("/root/hidden/dspcontrol/amqbCurrow", Currow );
  665. fRetriveAmawList(Currow);
  666. ]]>
  667. </script>
  668. </datagrid>
  669. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:660px; y2:75px; "/>
  670. <line id="line3" class="line_1" style="x1:670px; y1:75px; x2:1190px; y2:75px; "/>
  671. <button id="button11" class="icon_right" visibility="visible" style="left:903px; top:55px; width:26px; height:19px; ">
  672. <caption/>
  673. <script type="javascript" ev:event="DOMActivate">
  674. <![CDATA[
  675. fGridWidthcontrol("amqb" ,"W");
  676. ]]>
  677. </script>
  678. </button>
  679. <button id="button12" class="icon_left" visibility="visible" style="left:958px; top:55px; width:26px; height:19px; ">
  680. <caption/>
  681. <script type="javascript" ev:event="DOMActivate">
  682. <![CDATA[
  683. fGridWidthcontrol("amaw" ,"W");
  684. ]]>
  685. </script>
  686. </button>
  687. <button id="button13" class="icon_top_direction" visibility="visible" style="left:930px; top:55px; width:26px; height:19px; ">
  688. <caption/>
  689. <script type="javascript" ev:event="DOMActivate">
  690. <![CDATA[
  691. fGridWidthcontrol("amqb" ,"N");
  692. ]]>
  693. </script>
  694. </button>
  695. </group>
  696. <caption id="caption1" style="left:205px; top:0px; width:216px; height:15px; font-weight:bold; color:#ff0000; vertical-align:top; ">* 문제와 답을 생성하는 화면입니다.</caption>
  697. </xhtml:body>
  698. </xhtml:html>